package com.ruoyi.ora.service;

import java.util.List;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.ora.domain.VoiceRecord;
import com.ruoyi.ora.domain.VoiceTranModel;
import org.springframework.web.multipart.MultipartFile;

/**
 * 语音转写记录Service接口
 * 
 * @author liuwp
 * @date 2024-11-14
 */
public interface IVoiceRecordService 
{
    /**
     * 查询语音转写记录
     * 
     * @param id 语音转写记录主键
     * @return 语音转写记录
     */
    public VoiceRecord selectVoiceRecordById(Long id);

    /**
     * 查询语音转写记录列表
     * 
     * @param voiceRecord 语音转写记录
     * @return 语音转写记录集合
     */
    public List<VoiceRecord> selectVoiceRecordList(VoiceRecord voiceRecord);

    public List<VoiceRecord> selectVoiceRecordListCollection(VoiceRecord voiceRecord);

    public List<VoiceRecord> selectVoiceRecordListDeviceUser(VoiceRecord voiceRecord);


    /**
     * 根据业务主键查询一条记录：语音转写记录
     *
     * @param voiceRecord 语音转写记录
     * @return 语音转写记录
     */
    public VoiceRecord selectOneVoiceRecord(VoiceRecord voiceRecord);

    /**
     * 新增语音转写记录
     * 
     * @param voiceRecord 语音转写记录
     * @return 结果
     */
    public int insertVoiceRecord(VoiceRecord voiceRecord);

    /**
     * 修改语音转写记录
     * 
     * @param voiceRecord 语音转写记录
     * @return 结果
     */
    public int updateVoiceRecord(VoiceRecord voiceRecord);

    /**
     * 修改语音转写记录
     *
     * @param voiceRecord 语音转写记录
     * @param voiceRecord 语音转写记录条件
     * @return 结果
     */
    public int updateVoiceRecordCondition(VoiceRecord voiceRecord, VoiceRecord voiceRecordCondition);

    /**
     * 批量删除语音转写记录
     * 
     * @param ids 需要删除的语音转写记录主键集合
     * @return 结果
     */
    public int deleteVoiceRecordByIds(Long[] ids);

    /**
     * 删除语音转写记录信息
     * 
     * @param id 语音转写记录主键
     * @return 结果
     */
    public int deleteVoiceRecordById(Long id);

    /**
     * 条件删除语音转写记录
     *
     * @param voiceRecord 语音转写记录
     * @return 结果
     */
    public int deleteVoiceRecordByCondition(VoiceRecord voiceRecord);

    public VoiceRecord voiceRecordUpload(VoiceRecord voiceRecord, MultipartFile file);

    public void tranFinishHandle(VoiceRecord voiceRecord, VoiceTranModel voiceTranModel);
}
